---
slug: /plugins/soft-break
title: Soft Break
---

### `createSoftBreakPlugin`

Allows you to create hotkeys which insert a line break, without exiting the current block.

```ts live
() => {
  const optionsSoftBreakPlugin = {
    rules: [
      { hotkey: 'shift+enter' },
      {
        hotkey: 'enter',
        query: {
          allow: [ELEMENT_CODE_BLOCK, ELEMENT_BLOCKQUOTE, ELEMENT_TD],
        },
      },
    ],
  };

  const plugins = [
    ...pluginsBasic,
    createListPlugin(),
    createTablePlugin(),
    createResetNodePlugin(optionsResetBlockTypePlugin),
    createSoftBreakPlugin(optionsSoftBreakPlugin),
    createExitBreakPlugin(optionsExitBreakPlugin),
    createTrailingBlockPlugin({ type: ELEMENT_PARAGRAPH }),
  ];

  return (
    <Plate
      id="soft-break"
      plugins={plugins}
      components={components}
      options={options}
      editableProps={editableProps}
      initialValue={initialValueSoftBreak}
    />
  );
}
```
